import {TypeScriptCourse} from "./TypeScriptCourse";

export class TypeScriptDiscountCourse extends TypeScriptCourse{
    getPriceInDollars(): number {
        const    priceInDollars  = this.getPrice()/ 100;
        return   parseFloat( priceInDollars.toFixed(2));
    }
    getPrice(): Amount {
        return super.getPrice() *0.8;
    }
}